1. Open the webChatUI.js file.
2. Inside the setup function, change the following lines:
	on('dialogclose', function(event) {
        if (webSocket !== undefined ) {
            chatUI.closePanel(event);
        }
    }
To the following:
	.one('dialogclose', function(event) {
	    if (webSocket !== undefined ) {
	        chatUI.closePanel(event);
	    } else {
	        chatUI.showChatPanel();
	    }
	});